<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost/" />
<title>OpportunitiesImportTest</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Opportunities Import Test</td></tr>
</thead><tbody>
<tr>
	<td>setTimeout</td>
	<td>99999999</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/import/default</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/opportunities/demo/createCustomFieldsForOpportunitiesModule</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/import/default</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=ImportWizardForm_importRulesType_7</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=ImportWizardForm_importRulesType_7</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Upload File</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=ImportWizardForm_firstRowIsHeaderRow</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=ImportWizardForm_file</td>
	<td>C:\Inetpub\selenium\zurmo_bleeding\app\protected\modules\import\tests\functional\files\importOpportunitiesTest.csv</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Select Permissions</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=ImportWizardForm_explicitReadWriteModelPermissions_type_2</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Map Fields</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Please map the fields you would like to import.</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_0_attributeIndexOrDerivedType</td>
	<td>label=Name</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_1_attributeIndexOrDerivedType</td>
	<td>label=Amount</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_1_attributeIndexOrDerivedType</td>
	<td>label=Close Date</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_1_mappingRulesData_ValueFormatMappingRuleForm_format</td>
	<td>label=05-30-1950 or 12-15-2011</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_3_attributeIndexOrDerivedType</td>
	<td>label=Description</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_4_attributeIndexOrDerivedType</td>
	<td>label=Stage</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_5_attributeIndexOrDerivedType</td>
	<td>label=Source</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_6_attributeIndexOrDerivedType</td>
	<td>label=Owner</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_6_mappingRulesData_UserValueTypeModelAttributeMappingRuleForm_type</td>
	<td>label=Zurmo Username</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_8_attributeIndexOrDerivedType</td>
	<td>label=Amount</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=ImportWizardForm_column_8_mappingRulesData_DefaultValueModelAttributeMappingRuleForm_defaultValue</td>
	<td>125.12</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_8_mappingRulesData_CurrencyIdModelAttributeMappingRuleForm_id</td>
	<td>label=USD</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_9_attributeIndexOrDerivedType</td>
	<td>label=TestcheckBoxen</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=ImportWizardForm_column_9_mappingRulesData_DefaultValueModelAttributeMappingRuleForm_defaultValue</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_10_attributeIndexOrDerivedType</td>
	<td>label=TestdateTimeen</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=ImportWizardForm_column_10_mappingRulesData_DefaultValueModelAttributeMappingRuleForm_defaultValue</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='ui-datepicker-div']/table/tbody/tr[3]/td[5]</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>link=15</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//button[@type='button'])[5]</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_11_attributeIndexOrDerivedType</td>
	<td>label=Testintegersen</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=ImportWizardForm_column_11_mappingRulesData_DefaultValueModelAttributeMappingRuleForm_defaultValue</td>
	<td>10</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_12_attributeIndexOrDerivedType</td>
	<td>label=TestmultiSelectDropDownen</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_12_mappingRulesData_DefaultValueDropDownModelAttributeMappingRuleForm_defaultValue</td>
	<td>label=Reading en</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_13_attributeIndexOrDerivedType</td>
	<td>label=Testphoneen</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=ImportWizardForm_column_13_mappingRulesData_DefaultValueModelAttributeMappingRuleForm_defaultValue</td>
	<td>1800000000</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_14_attributeIndexOrDerivedType</td>
	<td>label=TestradioDropDownen</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_14_mappingRulesData_DefaultValueDropDownModelAttributeMappingRuleForm_defaultValue</td>
	<td>label=Nose</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_15_attributeIndexOrDerivedType</td>
	<td>label=TesttagClouden</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_15_mappingRulesData_DefaultValueDropDownModelAttributeMappingRuleForm_defaultValue</td>
	<td>label=French</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=addExtraColumnButton</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>select</td>
	<td>id=ImportWizardForm_column_16_attributeIndexOrDerivedType</td>
	<td>label=Testurlen</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=ImportWizardForm_column_16_mappingRulesData_DefaultValueModelAttributeMappingRuleForm_defaultValue</td>
	<td>http://www.outback.com</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@class='float-bar']/div/div/a[2]/span</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Data Analysis is complete.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Import Data</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Congratulations!</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>//form[@id='edit-form']/div[2]/div/ul/li[1]/strong</td>
	<td>3</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//form[@id='edit-form']/div[2]/div/ul/li[2]/strong</td>
	<td>0</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//form[@id='edit-form']/div[2]/div/ul/li[3]/strong</td>
	<td>0</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='MenuView']/ul/li/a/span</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/opportunities/default</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=OpportunitiesSearchForm_anyMixedAttributes</td>
	<td>opportunity1</td>
</tr>
<tr>
	<td>keyUp</td>
	<td>OpportunitiesSearchForm_anyMixedAttributes</td>
	<td>\10</td>
</tr>
<tr>
	<td>waitForText</td>
	<td>//div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a</td>
	<td>opportunity1</td>
</tr>
</tbody></table>
</body>
</html>
</html>